package gov.fgn.sijyp.integracion.origen;

import java.io.Serializable;

import javax.persistence.*;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * The persistent class for the salaversion database table.
 */
@Entity
@Table(name = "salaversion", schema = "siijyp_integracion")
@Cache(usage = CacheConcurrencyStrategy.READ_ONLY)
public class SalaVersion implements Serializable {
  private static final long serialVersionUID = 1L;

  @Id
  @SequenceGenerator(name = "salaversion_generator", sequenceName = "salaversion_idsalaversion_seq")
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "salaversion_generator")
  @Column(unique = true, nullable = false)
  private Integer idsalaversion;

  @Column(nullable = false, length = 100)
  private String descripcion;

  @Column(nullable = false, length = 200)
  private String direccion;

  @Column(nullable = false)
  private Long idmunicipio;

  @Column(length = 15)
  private String ip;

  @Column(nullable = false, length = 10)
  private String usuario;

  public SalaVersion() {
  }

  public SalaVersion(Integer idsalaversion) {
    this.idsalaversion = idsalaversion;
  }

  public Integer getIdsalaversion() {
    return this.idsalaversion;
  }

  public void setIdsalaversion(Integer idsalaversion) {
    this.idsalaversion = idsalaversion;
  }

  public String getDescripcion() {
    return this.descripcion;
  }

  public void setDescripcion(String descripcion) {
    this.descripcion = descripcion;
  }

  public String getDireccion() {
    return this.direccion;
  }

  public void setDireccion(String direccion) {
    this.direccion = direccion;
  }

  public Long getIdmunicipio() {
    return this.idmunicipio;
  }

  public void setIdmunicipio(Long idmunicipio) {
    this.idmunicipio = idmunicipio;
  }

  public String getIp() {
    return this.ip;
  }

  public void setIp(String ip) {
    this.ip = ip;
  }

  public String getUsuario() {
    return this.usuario;
  }

  public void setUsuario(String usuario) {
    this.usuario = usuario;
  }

}